package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.dto.AdminLoginDTO;
import com.woniu.pojo.Admin;

/**
* @author Ma.Lei
* @description 针对表【t_admin】的数据库操作Service
* @createDate 2022-12-16 23:27:03
*/
public interface AdminService extends IService<Admin> {

    Admin getByPhone(String phone);

    Admin getByPhoneAndPassword(AdminLoginDTO adminLoginDTO);

    /**
     * 修改密码
     *
     * @param oldPwd
     * @param newPwd
     * @param phone
     * @return Boolean
     * @author yemaf
     * @time 2022/12/26 10:56:43
     */
    Boolean modifyPwd(String oldPwd, String newPwd, String phone);
}
